<?php
/**
 * Created by PhpStorm.
 * User: jsb
 * Date: 2018/8/28
 * Time: 15:44
 */
namespace app\admin\validate;
use app\common\validate\BaseValidate;

class LoginValidate extends BaseValidate
{
   protected $rule = [
       'username' => 'require|isEmpty|/^[a-zA-Z]{2,12}$/',
       'password' => 'require|isEmpty|/^[a-zA-Z0-9]{6,12}$/',
   ];
   protected $message = [
       'username.require' => '户名不能为空！',
       'password.require' => '密码不能为空！',
       'username' => '用户名需要为英文！',
       'password' => '密码需要为英文！'
   ];
}